<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>股票列表</title>
</head>
<body>
<script type="text/javascript" th:src="@{/static/js/stock/stock.js}"></script>

<table>
    <thead>
    <tr>
        <th>ID</th>
        <th>股票代码</th>
        <th>股票名称</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
        <tr th:each="stock : ${stockList}">
            <td th:text="${stock.id}">1</td>
            <td th:text="${stock.code}">600446</td>
            <td th:text="${stock.name}">金证股份</td>
            <td><a th:href="@{'/stock/profitHtml/' + ${stock.code}}">详情</a></td>
        </tr>
    </tbody>
</table>
</body>
</html>